<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入标签库 -->
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 如果设定为真，那么JSP中的表达式被当成字符串处理。比如下面这个表达式${2000 % 20}, 
在isELIgnored＝"true"时输出为${2000 % 20}，而isELIgnored＝"false"时输出为100。
Web容器默认isELIgnored＝"false"。 -->
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
<title>宠物商店</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../css/jpetstore.css">
</head>

<body>
<c:if test="${name!=null}">
<span id="span1">欢迎${name}</span>
</c:if>
	<div id="Header">
		<div id="Logo">
			<a href="../catalog/Main.html"><img
				src="../images/logo-topbar.gif" /></a>
		</div>

		<div id="Menu">
			<a href="../catalog/Cart.jsp"><img align="middle"
				name="img_cart" src="../images/cart.gif"/></a> 
				<img align="middle" src="../images/separator.gif" /> 
				
				<c:choose>
				   <c:when test="${name==null}">
				    <a href="../account/RegisterAndLogin.jsp">登录</a> 
				   </c:when>
				   <c:otherwise>
				    <a href="logout">注销</a> 
				   </c:otherwise>
				</c:choose>
				
				<img align="middle" src="../images/separator.gif">
				<a href="../help.html">帮助</a>
		</div>

		<div id="Search">
			<form method="post" action="../shop/searchProducts.html">
				<input type="text" name="keyword" size="14">&nbsp; <input
					type="submit" value="查找" />
			</form>
		</div>

		<div id="QuickLinks">
			<a href="Category?catid=FISH"><img
				src="../images/sm_fish.gif" /></a><img src="../images/separator.gif" />
			<a href="Category?catid=DOGS"><img
				src="../images/sm_dogs.gif" /></a><img src="../images/separator.gif" />
			<a href="Category?catid=REPTILES"><img
				src="../images/sm_reptiles.gif" /></a><img src="../images/separator.gif" />
			<a href="Category?catid=CATS"><img
				src="../images/sm_cats.gif" /></a><img src="../images/separator.gif" />
			<a href="Category?catid=BIRDS"><img
				src="../images/sm_birds.gif" /></a>
		</div>
	</div>

	<div id="content"></div>
</body>
</html>